package com.quyunshuo.module.home.ui.activity

import androidx.activity.viewModels
import com.quyunshuo.androidbaseframemvvm.base.mvvm.vm.EmptyViewModel
import com.quyunshuo.androidbaseframemvvm.common.ui.BaseActivity
import com.quyunshuo.module.home.databinding.HomeActivityBinding
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class HomeActivity : BaseActivity<HomeActivityBinding, EmptyViewModel>() {
    override val mViewModel: EmptyViewModel by viewModels()

//    override fun onCreate(savedInstanceState: Bundle?) {
//        super.onCreate(savedInstanceState)
//        enableEdgeToEdge()
//        setContentView(R.layout.home_activity)
//        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
//            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
//            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
//            insets
//        }
//    }

    override fun createVB(): HomeActivityBinding = HomeActivityBinding.inflate(layoutInflater)

    override fun initObserve() {
    }

    override fun initRequestData() {
    }

    override fun HomeActivityBinding.initView() {
        mBinding.vTvHello.text = "HomeActivity"
    }
}